<template>
	<view>
		<uni-evaluate :list-data="list" :rate="rate" :hasPreview="true"/>
	</view>
</template>

<script>
	import uniEvaluate from '../../components/xiujun-evaluate/uni-evaluate.vue';
	export default {
		components: {
			uniEvaluate
		},
		data() {
			return {
				list: [],
				rate: "",
			}
		},
		onLoad(e) {
			this.getList(e.type, e.id)
		},
		methods: {
			getList(type, id) {
				this.$axios({
					url: `user/usEvaluate/list`,
					method: "post",
					data: {
						id: id,
						type: type
					}
				}).then((res) => {
					this.list = res.result.list
					this.rate = res.result.rate
				})
			}
		}
	}
</script>

<style>

</style>
